import Vue from 'vue'
import VueRouter from 'vue-router'

import FaXian from "@/views/FaXian.vue"
import WoDe from "@/views/WoDe.vue"
import GuanZhu from "@/views/GuanZhu.vue"
import ShangCheng from "@/views/ShangCheng.vue"
import YinYveRen from "@/views/YinYveRen.vue"
import XiaZai from "@/views/XiaZai.vue"
import NotFind from "@/views/NotFind.vue"


Vue.use(VueRouter)

const routerr= new VueRouter({
    mode:"history",
    routes:[
        {
            path:'/',
            redirect:'/faxian'
        },
        {
            path:'/faxian',
            component:FaXian
        },
        {
            path:'/wode',
            component:WoDe
        },
        {
            path:'/wode/:uname',
            component:WoDe
        },
        {
            path:'/guanzhu',
            component:GuanZhu
        },
        {
            path:'/shangcheng',
            component:ShangCheng
        },
        {
            path:'/yinyveren',
            component:YinYveRen
        },
        {
            path:'/xiazai',
            component:XiaZai
        },
        {
            path:'*',
            component:NotFind
        }, 
    ]
})

export default routerr